
<!doctype html>
<html lang="zh-cmn-Hans">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no"/>
    <meta name="renderer" content="webkit"/>
    <meta name="force-rendering" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <!-- MDUI CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/mdui@1.0.2/dist/css/mdui.min.css"/>
 <style>
.k1 {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}

    </style>
    <title>Ourshare</title>
  </head>
  <body class=" mdui-theme-primary-indigo mdui-text-color-white" >
<div class="mdui-toolbar mdui-color-theme mdui-text-color-white">
<span class="mdui-btn mdui-btn-icon mdui-indigo" mdui-drawer="{target: '#drawer', swipe: true}">
      <i class="mdui-icon material-icons">menu</i>
    </span>
  <span class="mdui-typo-title">Ourshare安装</span>
  <div class="mdui-toolbar-spacer"></div>
</div>

  <div class="mdui-container k1"  style="margin:auto;text-align:center">
<div class=" mdui-text-color-theme mdui-typo-display-3">安装</div>
<div class="mdui-text-color-black mdui-typo ">
         <br>  <br>  <br>  <br>
<?php
$json_string = file_get_contents('install_lock.json');
$dataxxx = json_decode($json_string, true);
    if($dataxxx[1]=="OK"){
echo "已经安装，重新安装请清空数据表并<br><br>清空install_lock.json文件<br><br>（注意，不是删除！）<br>";
}
else{
header ( "Content-type:text/html;charset=utf-8" );
echo "你好，即将开始安装<br>";

sleep(1);
$vers=phpversion();
if($vers>=7.5&&$vers<=5.0){
echo "此PHP版本无法安装，要求：PHP5.0-7.5<br>";
echo "请调整PHP版本！<br>";
}else{
echo "<hr/>请输入SQL账号密码！<br>";
	echo '<form method="post" action="./runinstall.php">';
        echo '<input type="text" name="1" placeholder="服务器"><br>';
        echo '<input type="text" name="2" placeholder="用户名"><br>';
         echo '<input type="password" name="3" placeholder="密码"><br>';
         echo '<input type="text" name="4" placeholder="库名">';
echo "<hr/>请设置系统后台密码！<br>";
         echo '<input type="text" name="5" placeholder="管理员密码">';
echo '<input type="submit" value="确认" name="6" class="btn">';
echo '</form>';
}
}
?>

		
  </div>

			
</div>
    <!-- MDUI JavaScript -->
    <script src="https://cdn.jsdelivr.net/npm/mdui@1.0.2/dist/js/mdui.min.js"></script>
  </body>
</html>


 